package day05;

/*
 * Author: JacksonCoder
 * FileName: OopDemo
 * Version: 1.0.0
 * Date: 2025/4/12
 */
class Person{
    String name;
    int age;

    public void sayHello(){
        System.out.println("Hello, my name is " + name);
    }
}


public class OopDemo {

    public static void main(String[] args) {
        // 使用
        Person p = new Person();
        p.name = "Tom";
        p.sayHello();
    }

}
